package com.myjavatime;

import java.util.Random;
import java.util.UUID;
import java.util.stream.DoubleStream;

public class RandomUuid {
    public static void main(String[] args) {
        Random r1 = new Random();
        boolean b1 = r1.nextBoolean();
        System.out.println(b1);
        int i = r1.nextInt();
        System.out.println(i);
        System.out.println(r1.nextFloat());
        int i1 = new Random().nextInt(145)+34;//链式编程
        System.out.println(i1);
        String uuid = UUID.randomUUID().toString();
        System.out.println(uuid);

    }

}
